import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import { ConfigProvider, Layout } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import Header from './components/Header';
import Home from './pages/Home';
import Login from './pages/Login';
import Register from './pages/Register';
import Profile from './pages/Profile';
import AdminLogin from './pages/AdminLogin';
import AdminHome from './pages/AdminHome';
// import ResumeManagement from './pages/ResumeManagement';
// import JobSearch from './pages/JobSearch';
// import Assistant from './pages/Assistant';
import './App.css';

const { Content, Footer } = Layout;

const App: React.FC = () => {
  return (
    <ConfigProvider locale={zhCN}>
      <Router>
        <Layout className="app-layout">
          <Header />
          <Content style={{ padding: '0 50px', marginTop: 64 }}>
            <div className="site-layout-content">
              <Routes>
                <Route path="/" element={<Home />} />
                <Route path="/login" element={<Login />} />
                <Route path="/register" element={<Register />} />
                <Route path="/profile" element={<Profile />} />
                {/* 管理员专用登录路由 - 使用不同的URL路径 */}
                <Route path="/admin/login" element={<AdminLogin />} />
                <Route path="/admin" element={<AdminHome />} />
                {/* <Route path="/resumes" element={<ResumeManagement />} /> */}
                {/* <Route path="/jobs" element={<JobSearch />} /> */}
                {/* <Route path="/assistant" element={<Assistant />} /> */}
              </Routes>
            </div>
          </Content>
          <Footer style={{ textAlign: 'center' }}>
            求职管理系统 ©2025
          </Footer>
        </Layout>
      </Router>
    </ConfigProvider>
  );
};

export default App;